FROM openjdk:8-jdk-alpine
MAINTAINER kancy
VOLUME /tmp
COPY spring-boot-docker.jar app.jar
RUN chmod +x app.jar
EXPOSE 8080
ENTRYPOINT java -jar /app.jar -Djava.security.egd=file:/dev/./urandom -Duser.timezone=Asia/Shanghai $ARGS --spring.profiles.active=${PROFILE:-dev} --nodeId=$(hostname | awk -F"-" '{ print $NF }')
